ThinkPHP5


think\Error
library\think\Error.php at line 19

Class Error

Error

public class Error


Method Summary
static void

register()

注册异常处理

static void

appException(\Exception|\Throwable e)

Exception Handler

static void

appError(integer errno, integer errstr, string errfile, integer errline, array errcontext)

Error Handler

static void

appShutdown()

Shutdown Handler

protected static bool

isFatal(int type)

确定错误类型是否致命

static Handle

getExceptionHandler()

Get an instance of the exception handler.

Method Detail

library\think\Error.php at line 25

register

public static void register()

注册异常处理


library\think\Error.php at line 37

appException

public static void appException(\Exception|\Throwable e)

Exception Handler


library\think\Error.php at line 60

appError

public static void appError(integer errno, integer errstr, string errfile, integer errline, array errcontext)

Error Handler

Parameters:
errno - 错误编号
errstr - 详细错误信息
errfile - 出错的文件
errline - 出错行号
Throws:
ErrorException

library\think\Error.php at line 74

appShutdown

public static void appShutdown()

Shutdown Handler


library\think\Error.php at line 93

isFatal

protected static bool isFatal(int type)

确定错误类型是否致命


library\think\Error.php at line 103

getExceptionHandler

public static Handle getExceptionHandler()

Get an instance of the exception handler.


ThinkPHP5